/*
 * @Author: your name
 * @Date: 2020-10-06 09:28:00
 * @LastEditTime: 2020-10-19 17:42:28
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \longh_web\src\apis\Home.js
 */

import request from '@/utils/request'

//根据条件获取企业分页列表
export function getentMerchantsList(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/entMerchants/getMyUserPageList',
        method: 'POST',
        data
    })
}


// 获取详情
export function getentMerchantsinfo(id) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/entMerchants/info',
        method: 'POST',
        data: {
            id
        }
    })
}


// 添加
export function addEntMerchants(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/entMerchants/addEntMerchants',
        method: 'POST',
        data
    })
}

// 修改
export function updateEntMerchants(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/entMerchants/update',
        method: 'POST',
        data
    })
}

//删除
export function delEntMerchants(id) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/entMerchants/delete',
        method: 'POST',
        data: {
            id
        }
    })
}


// 上下架
export function publishentMerchants(id) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/entMerchants/publish',
        method: 'POST',
        data: {
            id
        }
    })
}

// 查看推送
export function getProductEntPush(data) {
    return request({
        url: "/wenge/microservice-supply-consumer-web/productCategory/getProductEntPush",
        method: "POST",
        data,
    })
}